package com.ruoyi.gas.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 隐患整改详情对象 gas_warn_rectify
 *
 * @author ruoyi
 * @date 2024-01-18
 */
public class GasWarnRectify extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 预警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warnTime;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String deviceId;

    /** 预警类型 */
    @Excel(name = "预警类型")
    private String warnType;

    /** 检测对象 */
    @Excel(name = "检测对象")
    private String detection;

    /** 检测数据单位 */
    @Excel(name = "检测数据单位")
    private String unit;

    /** 检测值 */
    @Excel(name = "检测值")
    private String concentration;

    /** 通道信息 */
    @Excel(name = "通道信息")
    private String route;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    //分配人
    private Long assignor;
    private String assignorName;

    //分配时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shareTime;

    //整改人
    private Long rectifier;
    private String rectifierName;

    //整改详情
    private String detail;

    //整改证明
    private String image;

    //整改完成时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rectifyTime;

    //审核时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date processTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setWarnTime(Date warnTime)
    {
        this.warnTime = warnTime;
    }

    public Date getWarnTime()
    {
        return warnTime;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }
    public void setWarnType(String warnType)
    {
        this.warnType = warnType;
    }

    public String getWarnType()
    {
        return warnType;
    }
    public void setDetection(String detection)
    {
        this.detection = detection;
    }

    public String getDetection()
    {
        return detection;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setConcentration(String concentration)
    {
        this.concentration = concentration;
    }

    public String getConcentration()
    {
        return concentration;
    }
    public void setRoute(String route)
    {
        this.route = route;
    }

    public String getRoute()
    {
        return route;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public Long getAssignor() {
        return assignor;
    }

    public void setAssignor(Long assignor) {
        this.assignor = assignor;
    }

    public Date getShareTime() {
        return shareTime;
    }

    public void setShareTime(Date shareTime) {
        this.shareTime = shareTime;
    }

    public Long getRectifier() {
        return rectifier;
    }

    public void setRectifier(Long rectifier) {
        this.rectifier = rectifier;
    }

    public Date getRectifyTime() {
        return rectifyTime;
    }

    public void setRectifyTime(Date rectifyTime) {
        this.rectifyTime = rectifyTime;
    }

    public Date getProcessTime() {
        return processTime;
    }

    public void setProcessTime(Date processTime) {
        this.processTime = processTime;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getAssignorName() {
        return assignorName;
    }

    public void setAssignorName(String assignorName) {
        this.assignorName = assignorName;
    }

    public String getRectifierName() {
        return rectifierName;
    }

    public void setRectifierName(String rectifierName) {
        this.rectifierName = rectifierName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warnTime", getWarnTime())
            .append("deviceId", getDeviceId())
            .append("warnType", getWarnType())
            .append("detection", getDetection())
            .append("unit", getUnit())
            .append("concentration", getConcentration())
            .append("route", getRoute())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("assignor", getAssignor())
            .append("shareTime", getShareTime())
            .append("rectifier", getRectifier())
            .append("detail", getDetail())
            .append("image", getImage())
            .append("rectifyTime", getRectifyTime())
            .append("processTime", getProcessTime())
            .append("assignorName", getAssignorName())
            .append("rectifierName", getRectifierName())
            .toString();
    }
}
